﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessObject;
using System.Data;

namespace GreenLife
{
    public partial class TienDoDuAn : System.Web.UI.Page
    {
        NewsBO nBO = new NewsBO();
        DataSet ds;
        protected void Page_Load(object sender, EventArgs e)
        {
            selectTienDoDuAn();
        }
        public void selectTienDoDuAn()
        {
            ds = nBO.getTT_TDDU(2);
            this.listTinTuc.DataSource = ds.Tables[0];
            this.listTinTuc.DataBind();

            //CollectionPager1.PageSize = 15;
            //CollectionPager1.DataSource = ds.Tables[0].DefaultView;
            //CollectionPager1.BindToControl = listTinTuc;
            //listTinTuc.DataSource = CollectionPager1.DataSourcePaged;
        }
    }
}